import QtQuick 2.15
import QtQuick.Layouts 1.15
Rectangle {
    id:root
    implicitHeight: 100
    width:height
    radius:height/2
    property  alias text:t.text
    color:ma.pressed?"#63aea7":"#fff9ef"
    property int nodeIndex: 0
    Image {
        id:border
        anchors.fill:parent
        source:"gs_border.svg"
    }
    Image {
        id:node
        anchors.horizontalCenter: parent.horizontalCenter
        width: root.width*0.8
        height: root.height*0.8
        y:root.height*0.1
        source: `gs_node${root.nodeIndex}.svg`
        Text {
            id:t
            anchors.horizontalCenter: parent.horizontalCenter
            anchors.bottom: node.bottom
            text : "K"
            font.pointSize: 16
            font.weight: Font.Black
            color:"#aaaa82"
            font.family: "Bonobo"
        }

    }
    MouseArea {
        id:ma
        anchors.fill: parent
    }
}
